/*
 * @Author: chengsl
 * @Date: 2022-05-10 15:47:52
 * @LastEditors: chengsl
 * @LastEditTime: 2023-05-05 09:45:22
 * @Description: file content
 */
export default [
  {
    name: '练习场',
    path: '/learn',
    component: () => import('../pages/home'),
    children: [
      {
        name: '过渡 & 动画概述练习',
        path: '/learn/transition',
        component:() => import('../pages/home/views/transition')
      },
      {
        name: '工具',
        path: '/learn/tools',
        component:() => import('../pages/home/views/tools/index.vue')
      },
      {
        name: 'Node Server Test',
        path: '/learn/nodeServer',
        component:() => import('../pages/home/views/nodeServer/index.vue')
      },
      {
        name: 'Echarts图',
        path: '/learn/map',
        component:() => import('../pages/home/views/map/index.vue')
      },
      {
        name: '日历信息',
        path: '/learn/calendar',
        component:() => import('../pages/home/views/calendar/index.vue')
      },
      {
        name: 'canvas动画',
        path: '/learn/canvas',
        component:() => import('../pages/home/views/canvas')
      },
      {
        name: '文件操作',
        path: '/learn/fileOption',
        component:() => import('../pages/home/views/fileOption/index.vue')
      },
      {
        name: '前端学习任务',
        path: '/learn/tasks',
        component:() => import('../pages/home/views/tasks/index.vue')
      },
    ]
  },
  {
    name: '视频动画',
    path: '/subpage/template/video/editor',
    components: {
      subpage: () =>
        import('../pages/video/editor')
    },
    meta: {
      title: '视频动画'
    }
  },
  {
    name: '图文编辑器',
    path: '/subpage/template/:feature(poster|watermark)/watermarkEditor',
    components: {
      subpage: () =>
        import(
          '../pages/watermark/editor'
          // '../pages/watermark/edit'
        )
    },
    meta: {
      title: '图文编辑器'
    }
  },
  {
    path: '/endStory',
    name: '尾页',
    component: () => import('../pages/story')
  }
]
